package com.iwdnb.gkgz.common.model.dto;

import java.math.BigDecimal;

import lombok.Data;

/**
 * 支撑位信息
 */
@Data
public class StockSupportDTO {

    private String code;

    private String name;

    private String date;
    private StockSupportItem first;

    private StockSupportItem second;

    private StockSupportItem third;

    private BigDecimal supportPrice;

    private BigDecimal openPrice;

    private BigDecimal minPrice;

    private BigDecimal realtimePrice;

    private BigDecimal realtimeRate;
    /**
     * 到支撑位差幅
     */
    private BigDecimal supportRate;

    private String matchFlag;

    private Integer supportLevel;

    private String remark;

    /**
     * 策略评分
     */
    private BigDecimal score;

    @Data
    public static class StockSupportItem {
        private Integer period;

        private BigDecimal price;

        private BigDecimal buyPrice;

        private String joinPeriod;

    }

    @Data
    public static class StockSupportCheckInfo {
        private String matchFlag;

        private Integer supportLevel;

        private BigDecimal supportPrice;

        private String remark;

    }
}
